<!-- inc:frame.top -->

<div class="position"><p><!-- inc:position --> &raquo; <a href="{:$mainlink}?file=sysgroup&act=list">系统组管理</a> &raquo; 编辑系统组</p><!-- inc:position.fr --></div>

<div class="page_pad">
  <form method="post" action="{:$mainlink}?file=sysgroup&act=modifyok&id={:$id}" onsubmit="return update_group(this);">
  <div class="content_box">
    <div class="content_bor">
      <table class="ctable">
        <tr>
          <td class="left">系统组名称：<span style="color:red;">*</span></td>
          <td class="right"><input class="ginput" type="text" name="groupname" id="groupname" value="{:$rs[groupname]}" /></td>
        </tr>
        <tr>
          <td class="left">唯一标识：<span style="color:red;">*</span></td>
          <td class="right">
            <input class="ginput" type="text" name="sign" id="sign" value="{:$rs[sign]}" />
            &nbsp;
            <span>[标识仅限英文字母、数字及下划线]</span>
          </td>
        </tr>
        <tr>
          <td class="left">缩略图：</td>
          <td class="right">
            <input type="radio" name="is_thumb" value="1"{if($rs[is_thumb])} checked{end}>启用
            &nbsp;
            <input type="radio" name="is_thumb" value="0"{if(!$rs[is_thumb])} checked{end}>禁用
            &nbsp;
            <span>[是否需要缩略图功能，建议启用]</span>
          </td>
        </tr>
        <tr>
          <td class="left">自定义模板：</td>
          <td class="right">
           <input type="radio" name="is_tplfile" value="1"{if($rs[is_tplfile])} checked{end}>启用
           &nbsp;
           <input type="radio" name="is_tplfile" value="0"{if(!$rs[is_tplfile])} checked{end}>禁用
           &nbsp;
           <span>[是否需要自定义模板功能]</span>
          </td>
        </tr>
        <tr>
          <td class="left">主题标签：</td>
          <td class="right">
           <input type="radio" name="is_tags" value="1"{if($rs[is_tags])} checked{end}>启用
           &nbsp;
           <input type="radio" name="is_tags" value="0"{if(!$rs[is_tags])} checked{end}>禁用
           &nbsp;
           <span>[是否需要主题标签功能]</span>
          </td>
        </tr>
        <tr>
          <td class="left">附加信息：</td>
          <td class="right">
           <input type="radio" name="is_album" value="1" {if($rs[is_album])} checked{end}>启用
           &nbsp;
           <input type="radio" name="is_album" value="0" {if(!$rs[is_album])} checked{end} >禁用
           &nbsp;
           <span>[是否开启附加信息]</span>
          </td>
        </tr>
        <tr>
          <td class="left">关联信息：</td>
          <td class="right">
           <input type="radio" name="is_chain" value="1" {if($rs[is_chain])} checked{end}>启用
           &nbsp;
           <input type="radio" name="is_chain" value="0" {if(!$rs[is_chain])} checked{end}>禁用
           &nbsp;
           <span>[是否开启关联信息]</span>
          </td>
        </tr>
        <tr>
          <td class="left">自定义图片尺寸：</td>
          <td class="right">
           宽度 <input class="ginput" type="text" name="width" value="{:$rs[width]}" />
           &nbsp;
           高度 <input class="ginput" type="text" name="height" value="{:$rs[height]}" />
          </td>
        </tr>
      </table>
      <input type="hidden" name="taxis" value="{:$rs[taxis]}" />
    </div>
  </div><!--content_box-->
  
  <div class="gbutton_div"><button type="submit" class="gbutton gbutton_dblue gbutton_add" id="creat_button">保存</button> &nbsp; <button type="button" class="gbutton gbutton_add" onclick="qgurl('{:$mainlink}?file=sysgroup&act=list')">返回</button> &nbsp; <span id="show_step" style="color:red;"><img src="images/loading.gif" style="visibility:hidden;" /></span></div>
  </form>
</div><!--page_pad-->

<script type="text/javascript">
function update_group(o)
{
	if(!o.groupname.value)
	{
		tip_msg('系统组名称不允许为空！');
		return false;
	}
	if(!o.sign.value)
	{
		tip_msg('标识符不能为空');
		return false;
	}
	document.getElementById("show_step").innerHTML = "<img src='images/loading.gif' border='0' align='absmiddle'> 正在保存数据，如果网页没有动静请刷新...";
	document.getElementById("creat_button").disabled=true;
}
</script>

<!-- inc:frame.bottom -->